
export function hasPermissions (perms) {
    if (localStorage.getItem('access') === undefined) {
        return false;
    }

    let access = localStorage.getItem('access').split(',');
    if (access.indexOf(perms) > -1) {
        return true;
    }
    return false;
};
